//
// Created by dddgzc on 2025/2/5.
//

#ifndef SUNBULLETEX_H
#define SUNBULLETEX_H

#include "algorithm"
#include "Bullet.h"

extern Camera camera;
extern Atlas* sunExAtlas;
extern Atlas* sunExExplodeAtlas;

class SunBulletEx : public Bullet{

public:
    SunBulletEx();
    ~SunBulletEx() = default;
    void onCollide() override;
    void onUpdate(int delta) override;
    void onDraw(const Camera &camera) override;
    bool checkCollision(const Vector2& position, const Vector2& size) override;
private:
    Animation animationIdle;
    Animation animationExExplode;
    Vector2 explodeRenderOffset;

};



#endif //SUNBULLETEX_H
